package com.ruoyi.activity.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.activity.mapper.ActTeacherMapper;
import com.ruoyi.activity.domain.ActTeacher;
import com.ruoyi.activity.service.IActTeacherService;
import com.ruoyi.common.core.text.Convert;

/**
 * 教师信息Service业务层处理
 * 
 * @author YZD
 * @date 2022-07-09
 */
@Service
public class ActTeacherServiceImpl implements IActTeacherService {
    @Autowired
    private ActTeacherMapper actTeacherMapper;

    /**
     * 查询教师信息
     * 
     * @param id 教师信息ID
     * @return 教师信息
     */
    @Override
    public ActTeacher selectActTeacherById(Long id)
    {
        return actTeacherMapper.selectActTeacherById(id);
    }

    /**
     * 查询教师信息列表
     * 
     * @param actTeacher 教师信息
     * @return 教师信息
     */
    @Override
    public List<ActTeacher> selectActTeacherList(ActTeacher actTeacher)
    {
        return actTeacherMapper.selectActTeacherList(actTeacher);
    }

    /**
     * 新增教师信息
     * 
     * @param actTeacher 教师信息
     * @return 结果
     */
    @Override
    public int insertActTeacher(ActTeacher actTeacher)
    {
        return actTeacherMapper.insertActTeacher(actTeacher);
    }

    /**
     * 修改教师信息
     * 
     * @param actTeacher 教师信息
     * @return 结果
     */
    @Override
    public int updateActTeacher(ActTeacher actTeacher)
    {
        return actTeacherMapper.updateActTeacher(actTeacher);
    }

    /**
     * 删除教师信息对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteActTeacherByIds(String ids)
    {
        return actTeacherMapper.deleteActTeacherByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除教师信息信息
     * 
     * @param id 教师信息ID
     * @return 结果
     */
    @Override
    public int deleteActTeacherById(Long id)
    {
        return actTeacherMapper.deleteActTeacherById(id);
    }
}
